package com.blc.enums;

/**
 * @Author tidudada
 * @Description  第三方接口调用枚举类
 * @Date 上午8:53 2021/12/7
        **/

public enum WxEnums {
     ACCESS_TOKEN("https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=APPSECRET"
             ,"获取access_token的url","GET"),
     CREATE_MENU("https://api.weixin.qq.com/cgi-bin/menu/create?access_token=ACCESS_TOKEN","自定义菜单",
             "POST"),
    MP_OAUTH("https://open.weixin.qq.com/connect/oauth2/authorize?" +
                     "appid=APPID&redirect_uri=REDIRECT_URI&response_type=code&scope=SCOPE&state=STATE#wechat_redirect"
                     ,"微信Oauth2",""),
    ACCREDIT_ACCESS_TOKEN("https://api.weixin.qq.com/sns/oauth2/access_token?" +
                                  "appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code",
                                  "跟进用户授权的code获取用户access_token以获取用户的数据",""),
    GET_USERINFRO("https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN",
                          "拉取用户信息","GET");

    private final String url;
    private final String message;
    private final String method;

    WxEnums(String url, String message, String method) {
        this.url = url;
        this.message = message;
        this.method = method;
    }

    public String getUrl() {
        return url;
    }

    public String getMessage() {
        return message;
    }

    public String getMethod() {
        return method;
    }

}
